package com.wxl.www.wxl.shiro.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wxl.www.wxl.shiro.entity.SysPermission;
import com.wxl.www.wxl.shiro.entity.UserInfo;

import java.util.List;
import java.util.Map;

public interface SysPermissionService extends IService<SysPermission> {
    /**
     * 获取角色所有菜单
     * @return
     */
    List<SysPermission> getMenuAll(UserInfo userInfo);

    /**
     * 获取树形结构菜单
     * @return
     */
    List<Map<String ,Object>> getTreeMenuAll();

    List<SysPermission> findById(String id);


}
